package com.ruyuan.seckilling.common.message;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.StringUtils;

/**
 * @author zhonghuashishan
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PagePublishResultMessage {

    // 流水id
    private Long pageLogId;

    // 页面是否发布成功
    private boolean success;

    private String serverIp;

    public String toJsonString() {
        return JSON.toJSONString(this);
    }
}